package com.whcoding.test.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.whcoding.test.annotion.ColumnConfig;
import com.whcoding.test.annotion.FieldAnnotation;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: spring-boot-learning
 * @description:
 * @author: whcoding
 * @create: 2022-09-06 15:01
 **/
@Data
public class OrmDeptInfoVO {

	private Long id;
	@FieldAnnotation(fieldName = "部门id", dataColumn = "dept_id")
	@ColumnConfig(description = "部门id")
	private Integer deptId;

	@FieldAnnotation(fieldName = "部门编码", dataColumn = "dept_no")
	@ColumnConfig(description = "部门编码")
	private String deptNo;

	@FieldAnnotation(fieldName = "部门类型", dataColumn = "dept_type")
	@ColumnConfig(description = "部门类型")
	private Integer deptType;

	@FieldAnnotation(fieldName = "部门名称", dataColumn = "dept_name")
	@ColumnConfig(description = "部门名称")
	private String deptName;

	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@FieldAnnotation(fieldName = "创建时间", dataColumn = "create_time")
	private Date createTime;

	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@FieldAnnotation(fieldName = "更新时间", dataColumn = "update_time")
	@ColumnConfig(description = "更新时间")
	private Date updateTime;

	@FieldAnnotation(fieldName = "部门绩效", dataColumn = "dept_perf")
	private BigDecimal deptPerf;

	@FieldAnnotation(fieldName = "是否有效", dataColumn = "is_valid_flag")
	private Integer isValidFlag;

	@FieldAnnotation(fieldName = "部门简称", dataColumn = "short_name")
	private String shortName;

	@FieldAnnotation(fieldName = "备注", dataColumn = "remark")
	private String remark;

}
